home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root.gameOver == 1)
- {
- _visible = false;
- }
- if(_root.gameOn == 1)
- {
- if(isNegative == 0 && _root.negativeColor == 1)
- {
- myColor.negative();
- isNegative = 1;
- }
- if(isNegative == 1 && _root.negativeColor == 0)
- {
- myColor.setTransform(_root.origStars);
- isNegative = 0;
- }
- _X = _X - _root.groundSpeed / 2;
- if(_X < - _width)
- {
- removeMovieClip(this);
- }
- if(this._x <= 600 && this.dupeOnce == 1)
- {
- this.duplicateMovieClip("stars" + _root.starsCount,_root.i);
- _root["stars" + _root.starsCount]._y = this._y;
- _root["stars" + _root.starsCount]._x = this._x + this._width - 5;
- _root.i = _root.i + 1;
- this.dupeOnce = 0;
- _root.starsCount = _root.starsCount + 1;
- }
- }
- }
-